// api.js
import {
	get,
	post
} from '../utils/request.js';

// 获取问诊列表
export const getPatientAdmissionList = (data) => {
	return post('/wechatDoctor/getCustomerIdAndDetailById', data);
};

// 接诊
export const updateFlowRxByRxId = (data) => {
	return post('/wechatDoctor/updateFlowRxByRxId', data);
};

// 配合医生管理端接患者
export const changeMedicalStatus = (params) => {
	return get('/flow/regist/change_medical_status', params);
};

// 获取快捷短语列表
export const getShortcutPhraseTemplate = (params) => {
	return get('/shortcutPhraseTemplate/getShortcutPhraseTemplate', params);
};

// 获取快捷短语列表
export const addConsultRecord = (data) => {
	return post('/opm/consult/add_consult_record', data);
};

export const getMyPatients = (params) => {
	return get('/api/patients/getMyPatients', params);
};